|
|
|
|
|
|
|
If lngResult = 0 Then
lngResult = RSInit(frmTemp)
End If
If lngResult = 0 Then
lngResult = RSRead(frmTemp)
End If
Case 2 ' delete rec
lngResult = RSDelete()
If lngResult = 0 Then
lngResult = RSEnable(frmTemp, False)
End If
If lngResult = 0 Then
lngResult = RSNext()
End If
If lngResult = 0 Then
lngResult = RSInit(frmTemp)
End If
If lngResult = 0 Then
lngResult = RSRead(frmTemp)
End If
BBEnable frmTemp, "11111111"
Case 3 ' find
lngResult = RSLocate(strSearch)
If lngResult = True Then
lngResult = RSInit(frmTemp)
End If
If lngResult = 0 Then
lngResult = RSRead(frmTemp)
End If
BBEnable frmTemp, "11111111"
Case 4 ' move to top
rs.MoveFirst
lngResult = RSInit(frmTemp)
If lngResult = 0 Then
lngResult = RSRead(frmTemp)
End If
BBEnable frmTemp, "11111111"
Case 5 ' move next
lngResult = RSNext()
If lngResult = 0 Then
lngResult = RSInit(frmTemp)
End If
If lngResult = 0 Then
lngResult = RSRead(frmTemp)
End If
BBEnable frmTemp, "11111111"
Case 6 ' move previous
rs.MovePrevious
lngResult = RSBack()
If lngResult = 0 Then
lngResult = RSInit(frmTemp)
End If
If lngResult = 0 Then
lngResult = RSRead(frmTemp) |
|
|
|
|
|